package com.mewpipe.entity;

import java.io.Serializable;





import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import javax.xml.bind.annotation.XmlRootElement;



@Entity
@Table(name="users")
@XmlRootElement

public class User implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	//ID auto increment
	@Id	@GeneratedValue(strategy=GenerationType.AUTO)
	private Long id;
	
	@Column(unique = true)
	private String pseudo;
	
	@Column(unique = true)
	private String adresse;
	
	private int typeAcc = 1;
	private String password;
	private String nom;
	private String prenom;
	private Date age;

	public int getTypeAcc() {
		return typeAcc;
	}


	public void setTypeAcc(int typeAcc) {
		this.typeAcc = typeAcc;
	}


	public String getPseudo() {
		return pseudo;
	}
	

	public String getAdresse() {
		return adresse;
	}

	public String getPassword() {
		return password;
	}

	public String getPrenom() {
		return prenom;
	}

	public Date getAge() {
		return age;
	}

	public void setPseudo(String pseudo) {
		this.pseudo = pseudo;
	}

	public void setAdresse(String adresse) {
		this.adresse = adresse;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public void setPrenom(String prenom) {
		this.prenom = prenom;
	}

	public void setAge(Date dateAnniversaire) {
		this.age = dateAnniversaire;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public Long getId() {
		return id;
	}

	public String getNom() {
		return nom;
	}

	
	
	

}
